<?php
/*
 * @Author: your name
 * @Date: 2019-12-20 09:52:19
 * @LastEditTime : 2020-01-03 14:24:13
 * @LastEditors  : Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /ahsmp_3/application/adminapiv3/controller/CmdsHistory.php
 */
namespace app\adminapiv3\controller;

use app\adminapiv3\service;
class  CmdsHistory extends Base
{
    /**
     * @name: 列表
     * @Param: 
     * @Description: 
     * @Author: foo
     * @Date: 2019-12-20 09:53:24
     */
    function list ()
    {
        $ServerSocketMessageHistory = new service\CmdsHistory();

        $data = $ServerSocketMessageHistory->toDo('list',[$this->getLimit()]);

        $this->jsonOutPut($data);
    }

    /**
     * @name: 错误条数
     * @Param: 
     * @Description: 
     * @Author: foo
     * @Date: 2020-01-03 14:22:01
     */
    function errCount ()
    {
        $ServerSocketMessageHistory = new service\CmdsHistory();

        $data = $ServerSocketMessageHistory->toDo('errorCount');

        $this->jsonOutPut($data);
    }

    /**
     * @name: 忽略错误
     * @Param: 
     * @Description: 
     * @Author: foo
     * @Date: 2020-01-03 14:23:13
     */
    function ignore ()
    {
        $id_s = $this->filterInput('id');
        $ServerSocketMessageHistory = new service\CmdsHistory();

        $ServerSocketMessageHistory->toDo('ignore', [$id_s]);

        $this->jsonOutPut();
    }
}
